package com.neu.icloud.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Order implements Serializable{

	private Integer orderId;
	private String orderSource;
	private Integer productId;
	private Integer productMount;
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date orderEndDate;
	private String orderState;
	private Integer finishMount;
	private String caCop;
	private Integer userId;
	private Integer factoryId;
	
	private List<Mechine> mechines;
	private List<Product> products;
	private List<OrderDetail> orderdetails;
}
